package com.starbaba.mall.service;

import java.util.List;
import java.util.Map;

import com.base.common.exception.AppException;
import com.starbaba.mall.entity.FanliWithdrawalEntity;
import com.tuanzi.server.loan_base.model.db.Loan_Mall_Fanli_Record;


/**
 * 返利订单 service
 * @author chenweijun 2017/10/29
 *
 */
public interface FanliOrderService {
	
	/**
	 * 查询返利订单列表
	 * @param paramsMap
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public List<Loan_Mall_Fanli_Record> getList(Map<String, Object> paramsMap, int pageNo, int pageSize);
	
	/**
	 * 统计返利订单列表数量
	 * @param paramsMap
	 * @return
	 */
	public int countList(Map<String, Object> paramsMap);
	
	/**
	 * 导入淘客订单列表
	 * @param result
	 * @return
	 * @throws AppException
	 */
	public int importTaokeOrderList(String[][] result) throws AppException;
	
	
	/**
	 * 导入如意投订单列表
	 * @param result
	 * @return
	 * @throws AppException
	 */
	public int importRuyitouOrderList(String[][] result) throws AppException;
	
	/**
	 * 查询返利提现记录列表
	 * @param paramsMap
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public List<FanliWithdrawalEntity> getWithdrawalList(Map<String, Object> paramsMap, int pageNo, int pageSize);
	
	
	/**
	 * 统计返利体现记录数量
	 * @param paramsMap
	 * @return
	 */
	public int countWithdrawalList(Map<String, Object> paramsMap);
	
	/**
	 * 导出返利订单列表
	 * @param paramsMap
	 * @return
	 */
	public String exportList(Map<String, Object> paramsMap);
}
